import React, { Component } from 'react'
import {connect} from 'dva';
import {Layout} from 'antd';
import AdminHeader from '@/components/AdminHeader';
import MenuList from '@/components/MenuList';
const {Header,Footer,Content,Sider} = Layout;
class componentName extends Component {
  render() {
    return (
      <Layout>
        <AdminHeader/>
        <Layout>
          <Sider>
            <MenuList {...this.props}/>
          </Sider>
          <Content>{this.props.children}</Content>
        </Layout>
        <Footer style={{textAlign:'center'}}>珠峰架构学院 @2018</Footer>
      </Layout>
    )
  }
}
export default connect(
    state=>state.login
)(componentName);
